const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username, // 用户昵称
  id: state => state.user.userInfo.userId, // 用户id
  avatar: state => state.user.userInfo.staffPhoto, // 用户头像
  companyId: state => state.user.userInfo.companyId, // 公司 ID
  routes: state => state.permission.routes, // 用户路由
  companyName: state => state.user.userInfo.companyName, // 用户路由
  departmentName: state => state.user.userInfo.departmentName // 用户路由
}
export default getters
